import service from "../service";

// 获取公钥
export const getRSAKey = (params) =>
  service({
    url: "/global/getRSAKey",
    method: "post",
    data: { params },
  });
// 发送验证码功能
export const sendAuthCode = (params) =>
  service({
    url: "/global/sendAuthCode",
    method: "post",
    data: params,
  });
// 登录功能
export const loginByPass = (params) =>
  service({
    url: "/global/login",
    method: "post",
    data: params,
  });
// 获取云协作地址
export const getToCloudUrl = () =>
  service({
    url: "/global/url/getUnCheckedUrl",
    method: "post",
    data: {},
  });
